#nav li {
    margin-top: -8px;
    float: left;
    position: relative;
    list-style: none;
}

#nav ul a {
    font-family: Arial, Helvetica, sans-serif;
    font-weight: normal;
    color: #FFFFFF;
    text-decoration: none;
    width: 116px;
    display: block;
    height: 20px;
    font-size: 13px;
    text-align: center;
    vertical-align: middle;
}

#nav ul li:hover a, #nav li:hover li a {
    background: none;
    border: none;
    color: #FFFFFF;
    -webkit-box-shadow: none;
    -moz-box-shadow: none;
}

#nav ul a:hover {
    background: #FFFFFF !important; /* for non-css3 browsers */
    filter:  progid:DXImageTransform.Microsoft.gradient(startColorstr='#FFFFFF', endColorstr='#FFFFFF'); /* for IE */
    background: -webkit-gradient(linear, left top, left bottom, from(#FFFFFF), to(#FFFFFF)) !important; /* for webkit browsers */
    background: -moz-linear-gradient(top,  #FFFFFF,  #FFFFFF) !important; /* for firefox 3.6+ */

    color: #21B24D !important;
    -webkit-border-radius: 0;
    -moz-border-radius: 0;
}

/* level 2 list */
#nav ul {
    filter:  progid:DXImageTransform.Microsoft.gradient(startColorstr='#21B24D', endColorstr='#008E03'); /* for IE */
    background: -webkit-gradient(linear, left top, left bottom, from(#21B24D), to(#008E03)); /* for webkit browsers */
    background: -moz-linear-gradient(top,  #21B24D,  #008E03); /* for firefox 3.6+ */

    display: none;
    margin: 0;
    padding: 0;
    width: 115px;
    position: absolute;
    top: 40px;
    color: #FFFFFF;
    border: solid 1px #b4b4b4;
    -webkit-border-radius: 10px;
    -moz-border-radius: 10px;
    border-radius: 10px;
}

/* dropdown */
#nav li:hover > ul {
    display: block;
    visibility: visible;
}

#nav ul li {
    float: none;
    margin: 0;
    padding: 0;
}

/* level 3+ list */
#nav ul ul {
    left: 115px;
    top: 3px;
}

/* rounded corners for first and last child */
#nav ul li:first-child > a {
    -webkit-border-top-left-radius: 9px;
    -moz-border-radius-topleft: 9px;
    -webkit-border-top-right-radius: 9px;
    -moz-border-radius-topright: 9px;
}

#nav ul li:last-child > a {
    -webkit-border-bottom-left-radius: 9px;
    -moz-border-radius-bottomleft: 9px;
    -webkit-border-bottom-right-radius: 9px;
    -moz-border-radius-bottomright: 9px;
}

/* clearfix */
#nav:after {
    content: ".";
    display: block;
    clear: both;
    visibility: hidden;
    line-height: 0;
    height: 0;
}
#nav {
    display: inline-block;
}

html[xmlns] #nav {
    display: block;
}

html #nav {
    height: 1%;
}